Visual Studio update broke MAUI app
Anyone else experienced this issue? I Just updated to Visual Studio 17.4.4 and i can't run/debug my MAUI blazor project anymore. It builds and deploys the project succesfully according to the logs, but right after the red bar shows on the bottom, which usually means the application is running, the application stops. The only thing that's in the output logs is:
The program '[14044] <<applicationname>>' has exited with code 2147942405 (0x80070005).
What I tried so far:
-
Clean project/solution
-
Delete bin/obj folders
-
"Repair" in the Visual Studio Installer
-
Rebooting PC
Edit:
For anyone experiencing the same, found the answer: https://github.com/dotnet/maui/issues/12080
What worked for me: Build your app in any mode. It will crash on startup as expected.
Now go to the windows start menu, right click the app you just build: More => Run as Admin.
The app will start and so will every other MAUI app from now on even when started within Visual Studio.
For a Windows desktop Maui app, I found adding the following line in the PropertyGroup section of the csproj file to work for me...
<WindowsAppSdkDeploymentManagerInitialize>false</WindowsAppSdkDeploymentManagerInitialize>
Thank you! This one saved my life
Ugh....